MergeCells
Merges the cells in the current row.
Syntax
expression.MergeCells();
expression
- A variable that represents a ApiTableRow class.
Parameters
This method doesn't have any parameters.
Returns
ApiTableCell | null
Example
This example merges the cells in the row.
let doc = Api.GetDocument();
let tableStyle = doc.CreateStyle("CustomTableStyle", "table");
tableStyle.SetBasedOn(doc.GetStyle("Bordered"));
let table = Api.CreateTable(3, 3);
table.SetStyle(tableStyle);
let row = table.GetRow(0);
table.SetWidth("percent", 100);
row.MergeCells();
doc.Push(table);